package persistencia;

import java.sql.Connection;
import java.sql.DriverManager;

public class AdministradorPersistencia {
	
protected Connection con;
	
	public Connection getConnection() throws Exception{
		String user="admin";
		String pass="admin";
		String connectionUrl = "jdbc:sqlserver://localhost;databaseName=tp-int;";
		Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
		this.con = DriverManager.getConnection(connectionUrl,user,pass);
		return con;
	}
	
	public void disconnect() throws Exception{
		this.con.close();
	}
}
